# -*- coding: utf-8; mode: snippet -*-
# name: if [ "$str" = "hello" ];then ... else if
# key: if
# contributor: Chen Bin <chenbin DOT sh AT gmail>
# --
if [ "\$${1:str_var}" = "${2:hello}" ]; then
    $0
else
fi;